package 补充.多线程;

public class 继承Thread {
    public static void main(String[] args) {
        Thread1 thread = new Thread1();
        thread.start();
        for (int i = 0; i < 10; i++) {
            System.out.println("游戏开始"+i);
        }
    }
}
class Thread1 extends Thread {
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("播放音乐"+i);
        }
    }
}
